EA Setup – MetaTrader 5
Choose the MT5 webhook you want to configure.
On the Dashboard page, go to the ‘Download EA’ section and click ‘Download'.
In MT5, click ‘Open data folder'.
Navigate to MQL5, then open the Experts folder.
Copy and paste the EA file into the Experts folder.
Click “Tools” → “Options”
Tick 'Allow algorithmic trading', 'Allow DLL imports' and add following URL:
https://tradingviewlink.com
Ensure that ‘AutoTrading’ button is in green.
Click ‘Refresh’ in the EA section. The TradingView Link EA should appear.
Note: You only need to run the EA on one of the charts with any timeframe in order to trade all symbols in MT5.
To trade a specific symbol, ensure it’s added to the symbol list. A colored dollar sign indicates it’s active.
Tick 'Allow Algo Trading'
For ID please input your webhook ID for TradingView Link. For other parameters, please refer to the ‘Documentation’ section.
For example, it is needed to input 66aef1285daa12b2caa2b62d in the webhook ID field.
Before sending alert messages from Telegram or TradingView, you need to generate a webhook password. In the Dashboard’s settings, click ‘Add Secret’ to create it.
Note: Please save the password as it will not be shown again. If you forget the password, you can delete the password and generate a new one. Changing the password will require setting up the Telegram bot and TradingView alert again.
To automate TradingView strategy signals, copy the webhook URL from the Dashboard into the TradingView alert section. For the syntax of TradingView alert messages, please refer to ‘Components of Alert Message’ section.
You may choose to link your webhook ID with our Telegram bot to enable tracking of alert records from TradingView through TradingView Link to MetaTrader, as well as to send order execution instructions directly from Telegram to MetaTrader. We recommend considering this feature for its efficiency in monitoring alerts and streamlining trade execution. To proceed, please send the following command to the bot:
/setup Webhook ID Password of Webhook ID
If correct, you will get a confirmation reply:
Note: Once setup, it is not needed to fill in password for webhook ID when sending trading messages from Telegram
Example:
Should you manage multiple webhooks and wish to configure them within a single Telegram account, you may create a Telegram Group for each webhook, add the TradingView Link Telegram bot to the group, and designate it as an administrator to grant it permission to access and read messages. Subsequently, repeat the aforementioned Telegram bot setup process for each webhook.
Available only on the Pro plan, this feature lets you share alerts between MT5-to-MT5 or MT4-to-MT4 accounts.
Configure shared targets in the Alert Sharing section of your Pro plan account by clicking ‘Add’ in the Shared Target field.
You will get a shared target ID. Input the shared target ID on the TradingView Link EA in the MT5 trading account that you would like to share your signal to:
Signals to the Pro account will be shared to the shared target onwards once setup.
Trading account with Pro account webhook:
Trading account with shared target ID:
To stop the alert sharing to this target, click ‘Remove’ in the Shared Targets field.